package com.lzy.permission.dao;

import org.springframework.stereotype.Component;

import com.lzy.dao.HibernateDao;
import com.lzy.permission.entity.User;
import com.lzy.util.Page;

@Component
public class UserManager extends HibernateDao<User, String> implements UserDao{

	public void addUser(User user) {
		save(user);
	}

	public void delUser(String id) {
		delete(id);
	}

	public void updateUser(User user) {
		save(user);
	}

	public User queryUserById(String id) {
		return findUnique(id);
	}

	public Page<User> findPageById(String id) {
		return null;
	}

	
}
